import request from '@/utils/request'

const subsystem = {
  // 微服务列表
  sysServiceList(params) {
    return request.get('/system/sysService/list', {params})
  },
  // 添加微服务
  sysServiceAdd(data) {
    return request.post('/system/sysService/add', data)
  },
  // 修改微服务
  sysServiceUpdate(data) {
    return request.post('/system/sysService/update', data)
  },
  // 删除微服务
  sysServiceDelete(id) {
    return request.post(`/system/sysService/delete/${id}`)
  },
  // 查询微服务详细
  sysServiceDetail(id) {
    return request.get(`/system/sysService/detail/${id}`)
  },
  getServiceByCode(serviceCode) {
    return request.get(`/system/sysService/getServiceByCode/${serviceCode}`)
  }

}
export default subsystem;
